package com.example.demo.server.model;

import java.util.Objects;


public class LoginInfo {
    private String sessionId;
    private String session;



    public String getSession() {
        return session;
    }

    public void setSession(String session) {
        this.session = session;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    @Override
    public String toString() {
        return "LoginInfo{" +
                "sessionId='" + sessionId + '\'' +
                ", session='" + session + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        LoginInfo loginInfo = (LoginInfo) o;
        return Objects.equals(sessionId, loginInfo.sessionId) && Objects.equals(session, loginInfo.session);
    }

    @Override
    public int hashCode() {
        return Objects.hash(sessionId, session);
    }
}
